package com.example.mall.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import java.io.Serializable;

/**
 * <p>
 * 物流状态历史表
 * </p>
 *
 * @author whale
 * @since 2025-05-16
 */
@TableName("tb_logistics_status_history")
public class LogisticsStatusHistory extends Model<LogisticsStatusHistory> {

    private static final long serialVersionUID = 1L;

    /**
     * 历史记录唯一标识
     */
    @TableId("history_id")
    private Integer historyId;
    /**
     * 物流单ID（关联物流单表）
     */
    @TableField("logistics_id")
    private Integer logisticsId;
    /**
     * 物流状态（0：待发货，1：运输中，2：已签收，3：异常）
     */
    private String status;
    /**
     * 状态描述
     */
    private String description;
    /**
     * 状态更新时间
     */
    @TableField("update_date")
    private Date updateDate;


    public Integer getHistoryId() {
        return historyId;
    }

    public void setHistoryId(Integer historyId) {
        this.historyId = historyId;
    }

    public Integer getLogisticsId() {
        return logisticsId;
    }

    public void setLogisticsId(Integer logisticsId) {
        this.logisticsId = logisticsId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }


    @Override
    public String toString() {
        return "LogisticsStatusHistory{" +
        ", historyId=" + historyId +
        ", logisticsId=" + logisticsId +
        ", status=" + status +
        ", description=" + description +
        ", updateDate=" + updateDate +
        "}";
    }
}
